home *** CD-ROM | disk | FTP | other *** search
/ Netware Super Library / Netware Super Library.iso / pegamail / pdpmpop / pmpop.txt < prev    next >
Text File  |  1994-07-04  |  18KB  |  351 lines

  1. ┌──────────────────────────────────────────────────────────────────────┐
  2. │           PMPOP - a POP3/SMTP e-mail transport subsystem             │
  3. │                 for use with Pegasus Mail/DOS v3.1                   │
  4. │     Copyright (c) 1990-94, David Harris, all rights reserved.        │
  5. └──────────────────────────────────────────────────────────────────────┘
  6.  
  7. ─── What is PMPOP? ───────────────────────────────────
  8.  
  9. PMPOP is an add-on transport for the Pegasus Mail electronic mail system
  10. which provides access to the Internet-based POP3 and SMTP mail protocols
  11. for those users running either Novell's LAN Workplace for DOS TCP/IP
  12. suite, or those using Packet Drivers to access their ethernet card.
  13. PMPOP appears to the user to be a part of Pegasus Mail, and is accessed
  14. via submenu choices added to the Pegasus Mail main menu. While PMPOP
  15. will run perfectly happily in the Novell NetWare environment, its most
  16. likely users will be those who are not using NetWare but want to use
  17. Pegasus Mail to send and receive Internet electronic mail.
  18.  
  19. POP3 ("Post Office Protocol version 3") is an Internet standard for
  20. retrieving mail received and stored on your behalf by another host. The
  21. protocol is necessary because your PC may not always be turned on, or
  22. running the program necessary to receive mail, so it's more appropriate
  23. to ask a larger machine which IS available all the time to receive it
  24. for you. POP3 is a receive-only protocol - it makes no provision for
  25. sending mail. PMPOP implements the POP3 protocol as described in the
  26. Internet standards document RFC1225.
  27.  
  28. SMTP ("Simple Mail Transfer Protocol") is the traditional Internet
  29. standard for transmission of electronic mail. PMPOP implements an "SMTP
  30. client", or that half of the SMTP protocol which is concerned with
  31. sending mail. Because PMPOP receives mail using the POP3 protocol, it
  32. does not have to implement the receiving half of SMTP, which is very
  33. complicated on a simple, single-task system like MS-DOS. The SMTP
  34. protocol is described in the Internet standards documents RFC821 and
  35. RFC1123.
  36.  
  37. Thus, by implementing POP3 to receive mail and SMTP to send it, PMPOP 
  38. provides a complete TCP/IP-based mail solution which you can run on a PC 
  39. running MS-DOS.
  40.  
  41.  
  42. ─── Who might use PMPOP? ─────────────────────────────
  43.  
  44. If you have a TCP/IP network with Unix hosts, or a connection to the
  45. world-wide Internet, you may want to use PMPOP. The services provided by
  46. PMPOP can usually be more completely and robustly performed by a native
  47. SMTP implementation, so if you are running under NetWare, you might be
  48. better advised to consider using either the Mercury Mail Transport
  49. System (from the same author as PMPOP and Pegasus Mail), or the Charon
  50. SMTP gateway from Clarkson University. Both of these are native, robust
  51. SMTP implementations specifically intended for use in the NetWare
  52. environment.
  53.  
  54. If you do not use NetWare, are not able to connect to a NetWare server, 
  55. or if you simply prefer to use the POP3/SMTP protocols to send e-mail
  56. directly from your PC, then PMPOP is probably of interest to you.
  57.  
  58.  
  59. ─── System requirements ──────────────────────────────
  60.  
  61. To use PMPOP, you must have the following:
  62.  
  63.    *  An IBM PC, XT, AT or 100% compatible computer
  64.    *  MS-DOS or PC-DOS version 3.0 or later
  65.    *  At least 512KB conventional RAM available after DOS is loaded
  66.    *  Either:
  67.       - The LAN Workplace for DOS TCP/IP stack version 4.1 or later
  68.       - A valid, properly installed Type 1 Packet Driver
  69.    *  Pegasus Mail/DOS version 3.1 or later
  70.       - PMPOP can be used with Pegasus Mail v3.0, but doing so requires
  71.       - some changes: see the section later in this file for details.
  72.    *  Permission from your TCP/IP network manager to run your PC on
  73.       the IP network, and an appropriate IP address.
  74.  
  75.  
  76. ─── Before installation ──────────────────────────────
  77.  
  78. Before you install PMPOP on your system, take a moment to find out the
  79. following information. Record it on a piece of paper and keep the paper 
  80. in front of you as you install PMPOP. The person who manages your TCP/IP 
  81. network, or the system manager of a Unix machine on your TCP/IP network 
  82. should both be able to provide you with this information.
  83.  
  84. A: Your IP address    ___.___.___.___   (ask your IP network manager)
  85.  
  86. B: Your IP netmask    255.___.___.___   (ask your IP network manager)
  87.  
  88. C: The name of the host from which you intend to retrieve mail using
  89.    the POP3 protocol; you must have a valid account with a current
  90.    password on this host (ask your IP network manager if you are unsure
  91.    about this)
  92.  
  93.    POP3 mail host:  __________________________________
  94.  
  95.    Your user ID on the POP3 host:  ___________________
  96.    
  97.    The password for your user ID:  ___________________
  98.  
  99. D: The name of a machine on your IP network which can transmit mail on
  100.    your behalf. This machine must be running a full SMTP implementation
  101.    and you must have the permission of its system manager before you
  102.    attempt to use it. In practically every instance you can use the
  103.    same machine from which you retrieve mail (see C: above), but if you
  104.    are unsure, check it out first.
  105.    
  106.    SMTP mail host:  __________________________________
  107.  
  108.  
  109. ─── Installing PMPOP on your system ──────────────────
  110.  
  111. PMPOP is provided in two versions - LWPMPOP.EXE, which you should use if 
  112. you run Novell's LAN Workplace TCP/IP protocol stack on your machine, and 
  113. PDPMPOP.EXE, which you should use if you use Packet Drivers.
  114.  
  115. Step 1:  Choose the correct version of PMPOP for your system, make a copy
  116.          of it to a location somewhere on your DOS path, and rename the 
  117.          copy to PMPOP.EXE. The remaining steps in the installation apply 
  118.          equally to either version except where noted specifically, and 
  119.          assume that PMPOP is called PMPOP.EXE. PMPOP can be run from a 
  120.          public directory on a file server if you wish.
  121.  
  122. Step 2:  Copy the files PMGATE.SYS and PM-MENU.RSC supplied with PMPOP
  123.          into the same directory as the copy of Pegasus Mail which you
  124.          intend to use.
  125.  
  126.          *** NOTE: if you are already using other user-defined gateways
  127.          for Pegasus Mail, you will have to use PCONFIG to duplicate the
  128.          definition in PMPOP's PMGATE.SYS file instead of overwriting
  129.          your current file. The correct settings for the gateway
  130.          definition screen in PCONFIG are shown in the appendix at the
  131.          end of this file. Similarly, if you already have additions to
  132.          your Pegasus Mail menus using a PM-MENU.RSC file, you will have
  133.          to modify them to add the options shown in the PM-MENU.R file
  134.          supplied with PMPOP.
  135.  
  136. Step 2a: If you are using the Packet driver version of PMPOP, copy the
  137.          file WATTCP.CFG to the same directory as PMPOP.EXE and modify
  138.          its contents to be correct for your network system. The values
  139.          in WATTCP.CFG are discussed at the end of this file. You do not
  140.          need this file if you use the LAN Workplace version of PMPOP.
  141.  
  142. Step 3:  Run Pegasus Mail, and choose "Check for new mail" from the main
  143.          menu. A pop-up menu should appear with three options (or more if
  144.          you already had options there). Choose "Configure PMPOP" from
  145.          the submenu, and PMPOP's configuration window should appear. In
  146.          the field marked "Get Mail From", enter the name in part C of
  147.          your preinstallation data sheet. In the "User name" and "User
  148.          password" sections, enter the user id and its password for the
  149.          account you wish to access on the mail host. In the field
  150.          marked "SMTP Mail host", enter the name from part D of your
  151.          preinstallation data sheet. Press <Ctrl-Enter> to save the
  152.          values you have entered.
  153.  
  154. That's all that's required. Now, whenever you want to check the POP3 mail 
  155. host for new mail, all you have to do is select "Get new mail by POP3" 
  156. and PMPOP will be automatically invoked to download your new mail. 
  157. Similarly, when you have composed messages and wish to send them, select 
  158. "Send all messages" from the "Send a message" submenu and all messages 
  159. composed since the last time you ran PMPOP to send mail will be sent.
  160.  
  161.  
  162. ─── Modifying WATTCP.CFG for your system ─────────────
  163.  
  164. If you are using the Packet Driver version of PMPOP, then you must modify 
  165. the file WATTCP.CFG to describe your machine. WATTCP.CFG can be placed in 
  166. the same directory as PMPOP.EXE, or if you need to locate it somewhere 
  167. else, you can create a DOS environment variable called WATTCP.CFG which 
  168. points to the directory where it is located - for example:
  169.  
  170.     set WATTCP.CFG=C:\DOS
  171.  
  172. If you already use another program which uses Erick Engelke's WATTCP 
  173. TCP/IP libraries, you can use the same WATTCP.CFG file it uses for PMPOP 
  174. as well.
  175.  
  176. WATTCP.CFG is a simple text file which provides the WATTCP TCP/IP stack 
  177. with the basic information it needs to connect to your TCP/IP network.
  178. A sample WATTCP.CFG file might look like this:
  179.  
  180.       my_ip=129.97.176.99
  181.       netmask=255.255.0.0           # Netmask for the Interface
  182.       nameserver=129.97.128.24      # Default nameserver to use
  183.       nameserver=129.97.128.196     # Alternate nameserver
  184.       gateway=129.97.176.1          # IP routing gateway
  185.       domainslist="uwaterloo.ca"
  186.  
  187. Any text appearing after a '#' on a line is regarded as a comment and is 
  188. ignored. Trailing whitespace on a line is also ignored. The fields in the 
  189. WATTCP.CFG file are as follows:
  190.  
  191.    MY_IP: should specify the numeric IP address of your PC. You should
  192.    use the value from part A of your preinstallation sheet here.
  193.  
  194.    NETMASK: must specify the proper IP subnet mask used on your 
  195.    network. If you do NOT know this value, then do NOT use PDPMPOP    
  196.    without getting the correct value from your IP network manager. You 
  197.    should use the value from part B of your preinstallation sheet here.
  198.  
  199.    NAMESERVER: should contain the numeric IP address to a machine
  200.    (usually a unix machine) which provides name resolution services on 
  201.    your IP network. Your IP network manager will be able to tell you the
  202.    address of a nameserver on your TCP/IP network.
  203.  
  204.    GATEWAY: should contain the numeric IP address of a machine which 
  205.    can route IP packets on your behalf. Your IP network manager will
  206.    be able to tell you the address of a router on your TCP/IP network.
  207.  
  208.    DOMAINSLIST: is an optional field which can contain a list of
  209.    comma-separated domain names which WATTCP will try using when
  210.    resolving addresses with no domain part.
  211.  
  212.  
  213. ─── Correct gateway definition values for PMPOP ──────
  214.  
  215. If you already have user-defined gateway definitions in your copy of 
  216. Pegasus Mail, then you cannot simply copy the PMGATE.SYS file supplied 
  217. with PMPOP into your PMAIL.EXE directory, since doing so will overwrite 
  218. your current definitions. Instead, you must either import the definition, 
  219. or create a new one in your existing definition file. In either case, you 
  220. have to use the Pegasus Mail configuration utility, PCONFIG.EXE, to do 
  221. this.
  222.  
  223. If you are using PCONFIG v3.1, then you can import the definition from 
  224. the file provided with PMPOP. Run PCONFIG, and choose "Manage user-
  225. defined gateways" from the main menu. Your gateway list will appear; 
  226. press <F10> to import the definition contained in the file provided with 
  227. PMPOP. PCONFIG will ask you to enter a filename - give the full path to 
  228. the copy of PMGATE.SYS provided with PMPOP. When you press <Enter>, 
  229. PCONFIG will import the gateway definition contained in the PMPOP file 
  230. into your current gateway list. You need do nothing more at this point 
  231. except save and exit.
  232.  
  233. If you are using an older version of PCONFIG, you must create the 
  234. definition from scratch in your definition list. Press <Ins> to create a 
  235. new definition, and give it the name PMPOP. Fill in the definition screen 
  236. exactly as shown below:
  237.  
  238.    ╔══════════════════ User Gateway Definition ══════════════════╗
  239.    ║                                                             ║
  240.    ║              Gateway name : [PMPOP           ]              ║
  241.    ║            *New mail path :                                 ║
  242.    ║    Is  a program to run? :  N                              ║
  243.    ║     *New mail search mask :                                 ║
  244.    ║       *Outgoing mail path :  ~h                             ║
  245.    ║    *Run for outgoing mail :                                 ║
  246.    ║          *Filename format :  ~d~d.MSG                       ║
  247.    ║   Run to validate address :                                 ║
  248.    ║     *Reply address format :  "~p" <~n>                      ║
  249.    ║   Accepts SMTP addresses? :  Y                              ║
  250.    ║   Simple message headers? :  'Glue' headers                 ║
  251.    ║     UUEncode attachments? :  Y                              ║
  252.    ║           Burst messages? :  N                              ║
  253.    ║       Strip gateway name? :  Y                              ║
  254.    ║   Force all mail through? :  N                              ║
  255.    ║                                                             ║
  256.    ╚═════════════════════════════════════════════════════════════╝
  257.  
  258.  
  259. ─── Using PMPOP with Pegasus Mail 3.0 ────────────────
  260.  
  261. PMPOP can be used with Pegasus Mail version 3.0, but doing so requires 
  262. one extra installation step. You must edit the file PM-MENU.R supplied 
  263. with PMPOP using a text editor (such as David's Text Editor, or if the 
  264. worst comes to the worst, the DOS EDIT command). Locate the line in the 
  265. file which looks like this:
  266.  
  267.    "pmpop -3~w -v2 -g > nul"
  268.  
  269. You must replace the '~w' in this string with the full path to the 
  270. location where your new mail is stored. In the NetWare environment, this 
  271. will be whatever is the name of your directory in SYS:MAIL; in other 
  272. environments, it will be whatever value you told Pegasus Mail to use when 
  273. you installed it for standalone operation. As an example, say you are 
  274. running in standalone mode and your new mail folder is C:\MAIL\DAVID: 
  275. you would change this line to read:
  276.  
  277.    "pmpop -3C:\\MAIL\\DAVID -v2 -g > nul"
  278.  
  279. Notice the way the backslash characters are doubled - this is necessary 
  280. to prevent the resource compiler from interpreting them as escape 
  281. characters.
  282.  
  283. Once you have made this change, save the file, and issue the command:
  284.  
  285.      RESCOM pm-menu.r
  286.  
  287. This invokes the Pegasus Mail resource compiler, ResCom, to prepare a new 
  288. PM-MENU.RSC file. Once you have created the new PM-MENU.RSC file, you 
  289. should follow all the steps shown above, using the new PM-MENU.RSC file 
  290. instead of the shipped version wherever specified.
  291.  
  292. For advanced users: you can also use any other valid substitution in this 
  293. string; so if you have set up Pegasus Mail for several users on your 
  294. system and have defined the new mail folder as C:\MAIL\~8 in Pegasus 
  295. Mail, you can do the same thing in this string.
  296.  
  297.  
  298. ─── Command-line Options Summary ─────────────────────
  299.  
  300. PMPOP supports the following command-line switches (you can use either '/'
  301. or '-' to prefix the switch):
  302.  
  303. -s          Send all queued outgoing SMTP mail
  304. -g          Get mail waiting on the POP3 host
  305. -c          Complete configuration
  306. -m          Minimal configuration (used when calling PMPOP from Pegasus
  307.             Mail, which provides the remaining information itself)
  308. -v          Verbose - report as much information as possible
  309. -q          Quiet - no progress indicator or screen output
  310. -u <name>   Specify the POP3 account name
  311. -p <pwd>    Specify the POP3 account password
  312. -n <"name"> Specify the user's personal (must be quoted)
  313. -a          Force standalone operation
  314. -5 <1|0>    Delete/don't delete downloaded mail on the host
  315. -4 <file>   Search mask (including wildcards) of files PMPOP should
  316.             look for when processing outgoing mail
  317. -3 <path>   DOS Path to directory where incoming mail should be placed
  318. -2 <host>   Address (or domain name) of SMTP relay host
  319. -1 <host>   Address (or domain name) of POP3 mail host
  320.  
  321.  
  322. ─── About PMPOP ──────────────────────────────────────
  323.  
  324. PMPOP is written by David Harris and is provided as a free utility in
  325. support of the Pegasus Mail e-mail system. Although it is free, it is NOT
  326. in the public domain, and the author retains all rights to it. Having
  327. said that, you may distribute it freely subject to three conditions: you
  328. may not charge for it; you may not bundle it as part of any other package
  329. without the author's explicit permission; and you may not alter it
  330. in any way.
  331.  
  332. For LAN Workplace connectivity, PMPOP uses the Novell LAN Workplace 
  333. toolkit, a quality library available from your Novell dealer.
  334.  
  335. For Packet Driver connectivity, PMPOP uses Erick Engelke's excellent
  336. WATTCP TCP/IP stack and library. WATTCP is well-supported, free
  337. software, which can be obtained by anonymous FTP from dorm.rutgers.edu in
  338. /pub/msdos/wattcp/wattcp.zip. WATTCP includes a number of useful TCP/IP
  339. utilities, and the libraries are available in full source form. If you
  340. are interested in developing TCP/IP applications to run in the Packet
  341. Driver environment, I can strongly recommend you look at WATTCP - and
  342. please consider buying the manual too; Erick is very deserving of your
  343. support. NOTE: You do not need to get WATTCP to be able to use PMPOP - it
  344. already has what it needs built in.
  345.  
  346. To contact PMPOP's author, you can send mail to:
  347.  
  348.    (Internet)      david@pmail.gen.nz
  349.    (CompuServe)    >internet:david@pmail.gen.nz
  350.  
  351.